package com.wn.pettyloan.mapper;

import com.wn.pettyloan.entity.ContractTemplate;

import java.util.List;

/**
* @author mi-xu
* @description 针对表【contract_template】的数据库操作Mapper
* @createDate 2022-12-06 13:35:49
* @Entity com.wn.pettyloan.entity.ContractTemplate
*/
public interface ContractTemplateMapper {
    List<ContractTemplate> selectAll();

    int deleteByPrimaryKey(Long id);

    int insert(ContractTemplate record);

    int insertSelective(ContractTemplate record);

    ContractTemplate selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ContractTemplate record);

    int updateByPrimaryKey(ContractTemplate record);

    ContractTemplate getContractTempByUserId(Integer userId, Integer status);

    ContractTemplate selectByProductId(Long productId);
}
